﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcMenuLeft.ascx.cs" Inherits="HotelManagement.Control.CMS.UcMenuLeft" %>
<script type="text/javascript">
 <!-- Begin
$(document).ready( function() {		
	$("#accordion_menu").accordion({
		fillSpace:	true
	    , active: <%=active %>
	});
});
// End -->
</script>
<div style="height: 330px; border:1px solid #808080; background-color: #ffffff; border-top: none; ">
    <div id="accordion_menu" class="basic">
        <asp:Repeater ID="rptParentMenu" runat="Server">
            <ItemTemplate>
                <a href="javascript:void(0)"><%#Eval("TenChucNang")%></a>
	            <div>
		            <ul class="submenuleft">
		                <asp:Repeater ID="rptChildMenu" runat="Server" DataSource='<%#LoadMenuCapCon(Eval("IdPage").ToString()) %>'>
		                    <ItemTemplate>
		                        <li><a href='<%#Eval("linkSub") %>'><%#Eval("TenChucNangSub") %></a></li>	
		                    </ItemTemplate>
		                </asp:Repeater>
		            </ul>
	            </div>        
            </ItemTemplate>
        </asp:Repeater>
    </div>
</div>  